package com.hz.ruoyistorage.controller;

import com.hz.rouyigonggong.utils.ResultJSON;
import com.hz.ruoyistorage.domain.LgUnit;
import com.hz.ruoyistorage.service.LgUnitService;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @version 1.0
 * @Author gj
 * @Date 2025/3/8 15:29
 * @注释
 */
@RestController
@RequestMapping("/unit")
public class LgUnitController {
    @Autowired
    private LgUnitService lgUnitService;


    /**
    * @Description: app用
    * @Param: []
    * @return: com.ruoyi.common.core.web.domain.AjaxResult
    * @Author: grx
    * @Date: 15:01 2025/3/13
    */
    @GetMapping("/list")
    public AjaxResult list() {
        return  AjaxResult.success(lgUnitService.list());
    }
    @RequestMapping("/getAll")
    public Object getAll() {
        return lgUnitService.list();
    }



}
